<#escape x as x?html>
<form class="form-horizontal form-fusion" name="recordForm" id="recordForm" method="post" action="${actionType!}">
    <input type="text" class="hide"
           name="id" value="${(record.id)!}">
    <div class="form-group">
        <label class="col-sm-2 control-label" for="name">应用名称</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="name" placeholder="应用名称"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.resName)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="ip">客户端IP</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="ip" placeholder="客户端IP"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.clientIp)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="userName">用户名称</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="userName" placeholder="用户名称"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.userName)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="logType">日志类型</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="logType" placeholder="日志类型"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.logTypeName)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="occurTime">产生时间</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="occurTime" placeholder="产生时间"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.occurTime?string("yyyy-MM-dd HH:mm:ss"))!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="uri">访问地址</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="uri" placeholder="访问地址"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.uri)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="costTime">花费时间(MS)</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="costTime" placeholder="花费时间(MS)"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.callCostTime)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="dataSize">数据大小(KB)</label>
        <div class="col-sm-9">
            <input type="text" class="form-control"
                   name="dataSize" placeholder="数据大小(KB)"
                   data-error="<@s.message "validator.error.require"/>" required
                   value="${(record.dataSize/1024)!}">
            <div class="help-block with-errors"></div>
        </div>
    </div>

</form>
<script>
    context.call([
        "core",
        "scanSelect",
    ], function (core, scanSelect) {
        scanSelect.initSelect();
        var id = $("input[name='id']").val();
        if (id == "") id = 0;
    })
</script>
</#escape>